/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package dto;

import java.io.Serializable;

/**
 *
 * @author vanchung07
 */
public class RoleFunctions implements Serializable {

    private int roleId;
    private int functionId;

    public RoleFunctions() {
    }

    public RoleFunctions(int roleId, int functionId) {
        this.roleId = roleId;
        this.functionId = functionId;
    }

    /**
     * @return the roleId
     */
    public int getRoleId() {
        return roleId;
    }

    /**
     * @param roleId the roleId to set
     */
    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    /**
     * @return the functionId
     */
    public int getFunctionId() {
        return functionId;
    }

    /**
     * @param functionId the functionId to set
     */
    public void setFunctionId(int functionId) {
        this.functionId = functionId;
    }

    @Override
    public String toString() {
        return super.toString(); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof RoleFunctions)) {
            return false;
        }
        RoleFunctions other = (RoleFunctions) obj;
        if (this.roleId != other.roleId || this.functionId != other.functionId) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        return super.hashCode(); //To change body of generated methods, choose Tools | Templates.
    }
}
